package main

import (
	"fmt"
)

func main() {
	// while
	a := 0
	for a < 5 {
		fmt.Println(a)
		a++
	}
	//result:
	//0,1,2.3,4

	// break
	for i := 0; i < 5; i++ {
		if i == 3 {
			break
		}
		fmt.Println(i)
	}
	//result:
	//0,1,2

	// continue
	for j := 5; j < 11; j++ {
		if j == 7 {
			continue
		}
		fmt.Println(j)
	}
	//reuslt:
	//5,6,8,9,10
}
